
export class ItemData {
    public type: number
    public id: number;
    public value: number;

    constructor(type: number, id?: number, value?: number) {
        this.type = type
        this.id = id
        this.value = value
    }

    public toString(): string {
        return `${this.type},${this.id},${this.value}`
    }

    // constructor(id: number, num: number, extent?: number) {
    //     this.key = id
    //     this.value = num
    //     this.extent = extent
    // }
}

export interface CommonDlgDesc {
    title?: string
    content: string
    leftBtnText?: string
    leftBtnFunc?: Function
    rightBtnText?: string
    rightBtnFunc?: Function
}
